//
//  Male.m
//  UI_练习男女
//
//  Created by dllo on 15/7/23.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "Male.h"
#import "AppDelegate.h"
@implementation Male

-(instancetype)initWithFrame:(CGRect)frame title:(NSString *)title
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self Mylabel];
        self.label.text = title;
    }
    return self;
}
- (void)Mylabel
{
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0,self.frame.size.width, self.frame.size.height)];
    self.label.backgroundColor = [UIColor clearColor];
    [self addSubview:self.label];
    self.label.layer.cornerRadius = 50;
    self.label.textAlignment = NSTextAlignmentCenter;
    [self.label release];
}
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    [self.target performSelectorInBackground:self.action withObject:self];
}


@end
